<?php

    // TITLE:
    // FILE:
    // AUTHOR:

    if ($addresses) {
        
        echo '<h3>Address' . (sizeof($addresses) > 1 ? 'es' : null)  . '</h3>';
        
        foreach ($addresses as $address) {
            echo $address->getStreet1() . '<br>';
            echo $address->getStreet2() . '<br>';
            echo $address->getCity() . ' ' . $address->getState()->getAbbreviation() . ', ' . $address->getZip() . '<br>';
        }
        
    } else {
        echo '<h3>No Address</h3>';
    }

?>  
    